<h1>Order#view_cart</h1>
<p><%= @order.order_num %></p>

<table border="1">
<% @order.order_items.each do |order_item| %>
<tr>
	<td>
		<%= order_item.product.product_name %>
	</td>
	<td>
		<%= order_item.quantity %>
	</td>
	<td>
		<%= order_item.product.price %>
	</td>
	<td>
		<%= order_item.total_amount %>
	</td>
	<td>
		<%= order_item.comments %>
	</td>
	<td>
		<a href="edit_order_item/<%= order_item.item_num %>">edit</a>
	</td>
	<td>
		<a href="remove_from_cart/<%= order_item.item_num %>">remove</a>
	</td>
</tr>
<% end %>
</table>
<a href="confirm_order">checkout</a>
